package com.biz.primus.ms.tms.trans;

import com.biz.primus.model.tms.vo.DeliveryFeeVo;
import com.biz.primus.ms.tms.dao.po.DeliveryFeePo;
import com.google.common.base.Function;

import java.io.Serializable;

/**
 *DeliveryFeePoToDeliveryFeeVo
 *@author JKLiues
 *@date 2017/11/21
 */
public class DeliveryFeePoToDeliveryFeeVo implements Function<DeliveryFeePo, DeliveryFeeVo>, Serializable {
    private static final long serialVersionUID = 5564107883981543753L;

    @Override
    public DeliveryFeeVo apply(DeliveryFeePo po) {
        DeliveryFeeVo vo = new DeliveryFeeVo();
        if (po != null) {
            vo.setId(po.getId());
            vo.setDeliveryFee(po.getDeliveryFee());
            vo.setDeliveryPriority(po.getDeliveryPriority());
        }
        return vo;
    }
}
